Mobile UI
Toggle table of contents
0.6.0
android
common
desktop
ios
Platform filter
android
common
desktop
ios
Switch theme
Search in API
Mobile UI
Mobile UI
/
org.hisp.dhis.mobile.ui.designsystem.platform.dates
Package-level
declarations
Functions
Properties
Properties
current
Date
In
Millis
Link copied to clipboard
android
common
desktop
ios
actual
val
currentDateInMillis
:
Long
expect
val
currentDateInMillis
:
Long
actual
val
currentDateInMillis
:
Long
actual
val
currentDateInMillis
:
Long
current
Year
Link copied to clipboard
android
common
desktop
ios
actual
val
currentYear
:
Int
expect
val
currentYear
:
Int
actual
val
currentYear
:
Int
actual
val
currentYear
:
Int
Functions
format
Date
Link copied to clipboard
android
common
desktop
ios
actual
fun
formatDate
(
dateFormat
:
String
,
dateInMillis
:
Long
)
:
String
expect
fun
formatDate
(
dateFormat
:
String
,
dateInMillis
:
Long
=
currentDateInMillis
)
:
String
actual
fun
formatDate
(
dateFormat
:
String
,
dateInMillis
:
Long
)
:
String
actual
fun
formatDate
(
dateFormat
:
String
,
dateInMillis
:
Long
)
:
String
is
Valid
Date
Link copied to clipboard
android
common
desktop
ios
actual
fun
isValidDate
(
text
:
String
)
:
Boolean
expect
fun
isValidDate
(
text
:
String
)
:
Boolean
actual
fun
isValidDate
(
text
:
String
)
:
Boolean
actual
fun
isValidDate
(
text
:
String
)
:
Boolean
year
In
Date
Link copied to clipboard
android
common
desktop
ios
actual
fun
yearInDate
(
dateString
:
String
,
dateFormat
:
String
)
:
Int
expect
fun
yearInDate
(
dateString
:
String
,
dateFormat
:
String
)
:
Int
actual
fun
yearInDate
(
dateString
:
String
,
dateFormat
:
String
)
:
Int
actual
fun
yearInDate
(
dateString
:
String
,
dateFormat
:
String
)
:
Int